package zookeeper;

import java.util.List;

import org.apache.thrift.TException;
import org.zs.weibo.thrift.EngineException;
import org.zs.weibo.thrift.UserProfile;
import org.zs.weibo.thrift.UserRevArgs;

public class UserEngineActions {
	
	public static class getUserProfile extends EngineClientProvider.UserAction<List<UserProfile>>{
		private UserRevArgs userRevArgs;
		
		public getUserProfile(UserRevArgs userRevArgs){
			this.userRevArgs = userRevArgs;
		}
		@Override
		public  List<UserProfile> doAction() throws TException, EngineException {
			List<UserProfile> userProfile = client.getUserProfile(userRevArgs);
			return userProfile;
		}
	}
}
